// 消息类型
export interface Message {
  id: string
  senderId: string
  receiverId: string
  content: string
  type: 'text' | 'image' | 'file' | 'voice' | 'video'
  timestamp: Date
  status: 'sending' | 'sent' | 'delivered' | 'read'
}

// 聊天会话类型
export interface ChatSession {
  id: string
  type: 'private' | 'group'
  name: string
  avatar: string
  lastMessage?: Message
  unreadCount: number
  lastActiveTime: Date
  participants: string[]
}

// 联系人类型
export interface Contact {
  id: string
  username: string
  nickname: string
  avatar: string
  status: 'online' | 'offline' | 'busy' | 'away'
  lastSeen?: Date
  isBlocked: boolean
  lastMessage?: string
  type?: 'friend' | 'group'
}
